On branching for a new version, also update the openwrt-keyring to
install the specific .pem key.
Signed-off-by: Christian Marangi <[email protected]>
package/base-files/image-config.in > package/base-files/image-config.branch && \
mv package/base-files/image-config.branch package/base-files/image-config.in
+sed -e 's!openwrt-.*.pem!openwrt-'"$version"'.pem!g' \
+ package/system/openwrt-keyring/Makefile > package/system/openwrt-keyring/Makefile.branch && \
+ mv package/system/openwrt-keyring/Makefile.branch package/system/openwrt-keyring/Makefile
+
git commit -sm "${distname:-OpenWrt} v$version: set branch defaults" \
feeds.conf.default \
include/version.mk \
- package/base-files/image-config.in
+ package/base-files/image-config.in \
+ package/system/openwrt-keyring/Makefile
git --no-pager log -p -1
git checkout "${prev_branch#refs/heads/}"